<template>
  <div class="model-form">
    <el-page-header @back="goBack" content="提现配置详情">
    </el-page-header>
    <el-form class="viewForm" label-width="80px">
      <el-col :span="12">
        <el-form-item label="提现标识">
          <div v-html="viewModel.key"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="配置名称">
          <div v-html="viewModel.name"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="appId">
          <div v-html="viewModel.appId"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="商户号">
          <div v-html="viewModel.mchId"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="商户Key">
          <div v-html="viewModel.mchKey"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="证书路径">
          <div v-html="viewModel.keyPath"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="手续费">
          <div v-html="viewModel.fee"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="费率">
          <div v-html="viewModel.rate"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="最小金额">
          <div v-html="viewModel.miniMoney"></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="备注">
          <div v-html="viewModel.note"></div>
        </el-form-item>
      </el-col>
    </el-form>
  </div>
</template>

<script>
import common from "@/mixins/common.js";

export default {
  name: "cashconfig_view",
  mixins: [common],
  data() {
    return {
      viewModel: {},
      activeIndex: "1"
    }
  },
  async mounted() {
    let id = this.$route.query.id;
    let data = {};
    data.id = id;
    let res = await this.$http.form("/cashConfig/view", data);
    if (res.code === 200) {
      this.viewModel = res.data;
    }
  }
}
</script>

<style scoped>

</style>
